﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GalaSoft.MvvmLight;
using Medecine.DataAccess.Patients;
using Medecine.Interface.Observations;
using Medecine.Dbo;

namespace Medecine.Interface.Patients
{
	public class PatientViewModel : ViewModelBase
	{
		public PatientViewModel(Patient patient)
		{
			_patient = patient;

			_observationList = new ObservationListViewModel(_patient.Id, _patient.Observations);
		}

		private readonly Patient _patient;

		public int Id { get { return _patient.Id; } }
		public DateTime Birthday { get { return _patient.Birthday; } }
		public string FirstName { get { return _patient.Firstname; } }
		public string LastName { get { return _patient.Name; } }

		#region Observations

		private readonly ObservationListViewModel _observationList;
		public ObservationListViewModel ObservationList { get { return _observationList; } }

		#endregion // Observations
	}
}
